#ifndef CDALOVERLORD_H
#define CDALOVERLORD_H

#include "CDal.h"

struct sqlite3;
struct sqlite3_stmt;

class CDalRecord;

class CDalOverlord : public CDal
{
  public:
    CDalOverlord();
    virtual ~CDalOverlord();

    CDalRecord* getMinionDataByPlayerId(unsigned int player_id);

    CDalRecord* getPlayerData(const char *username);

    bool insertPlayerData(const char *username,
                          const char *password,
                          const char *player_name,
                          int overlord_type_code,
                          int overlord_title_code,
                          int fame = 0,
                          int win_count = 0,
                          int lose_count = 0);

    bool updateGameResult(unsigned int player_id, bool status);

  protected:
  private:
};

#endif // CDALOVERLORD_H
